/*
 * driver: uart
 * File: $Id: uarttask.h    
 *
 *  Created on: 2019年1月4日
 *      Author: hongwei
 */

 
 /* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __UARTTASK_H
#define __UARTTASK_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
 #include "usart.h"
 
 
 
 #define  uartbufflength  300


typedef enum
{
    CHANNEL1=1,                   /* uart IT  Serial number*/
    CHANNEL2,          
    CHANNEL3, 
		CHANNEL4,
    CHANNEL5,
    CHANNEL6              
} T_UART_CHANNEL;
 
 typedef struct
{
	uint16_t length;
	uint8_t rxbuff[uartbufflength];
} T_UARTRMSG;
void uartconfig(void);
void USART_RxIdleCallback(UART_HandleTypeDef *huart);
#endif
